﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hdt.TransOcean
{
    public class ComboBoxItem
    {
        private int _value;

        public int Value
        {
            get { return _value; }
            set { _value = value; }
        }
        private string _text;

        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }

        public int SelectedValue()
        {
            return Value;
        }

        public ComboBoxItem(int val, string text)
        {
            Value = val;
            Text = text;
        }

        public override string ToString()
        {
            return Text;
        }
    }
}
